import type { ProColumns } from '@ant-design/pro-table';
export type columnsDataType = {
  startTime: string;
  endTime: string;
  custName: string;
  custNo: string;
  email: string;
  mobile: string;
  disctNo: string;
  openDate: string;
  custStatus: string;
  pageNum: number;
  pageSize: number;
};
const columnsData: ProColumns<columnsDataType>[] = [
  // 配置搜索框
  {
    title: '任务名称',
    dataIndex: 'taskName',
    hideInTable: true,
  },
  {
    title: '任务编号',
    dataIndex: 'serialNo',
    hideInTable: true,
  },

  // table里面的内容
  {
    title: '序号',
    dataIndex: 'order',
    valueType: 'indexBorder',
    hideInSearch: true,
    width: 50,
    fixed: 'left',
  },
  {
    title: '任务编号',
    dataIndex: 'serialNo',
    hideInSearch: true,
    width: 190,
    fixed: 'left',
  },
  {
    title: '任务名称',
    dataIndex: 'taskName',
    hideInSearch: true,
    width: 160,
  },
  {
    title: '激励金额',
    dataIndex: 'incentiveAmount',
    hideInSearch: true,
    width: 90,
  },
  {
    title: '单位',
    dataIndex: 'ccy',
    hideInSearch: true,
    width: 60,
  },
  {
    title: '描述',
    dataIndex: 'description',
    hideInSearch: true,
    width: 160,
  },
  {
    title: '创建日期',
    dataIndex: 'createTime',
    hideInSearch: true,
    width: 190,
  },
  {
    title: '任务状态',
    width: 100,
    hideInSearch: true,
    dataIndex: 'status',
    valueType: 'select',
    valueEnum: {
      0: { text: '未发布', status: 'Default' },
      1: { text: '待领取', status: 'Success' },
      2: { text: '待提交', status: 'Success' },
      3: { text: '待审核', status: 'Success' },
      4: { text: '已完成', status: 'Success' },
    },
  },
  {
    title: '任务进度',
    width: 100,
    hideInSearch: true,
    dataIndex: 'schedule',
  },
  {
    title: '提交内容',
    width: 100,
    hideInSearch: true,
    dataIndex: 'submitContent',
  },
  {
    title: '操作',
    dataIndex: 'action',
    hideInSearch: true,
    fixed: 'right',
  },
];

export default columnsData;
